import { Http } from "../util/http";

export async function getMyFolder () {
    return await Http.get({ url: '/getMyFolder' })
}

export async function createFolder (data) {
    return await Http.post({
        url: '/createFolder',
        data
    })
}
export async function getMyFileList (id) {
    return await Http.get({ url: `/getNextFolder/${id}` })
}

export async function getPublicFile (data) {
    return await Http.get({
        url: '/getPublicFile',
        data
    })
}

export async function searchFile (data) {
    return await Http.get({
        url: '/searchFile',
        data
    })
}
